<div id="default">
<div id="header"  class="container">
	<div id="top"><img src="<?php echo IMAGE_DIR ?>/top_01.gif"><img src="<?php echo IMAGE_DIR ?>/top_02.gif"><img src="<?php echo IMAGE_DIR ?>/top_03.gif"><img src="<?php echo IMAGE_DIR ?>/top_04.gif"></div>
	<div id="links">
		<?php if (empty($user)) { ?>
		<a href="<?php echo url('users', 'register') ?>">注册</a>
		<a href="<?php echo url('users', 'login') ?>">登录</a>
		<?php } else { ?>
		<a href="<?php echo url('users', 'logout') ?>">退出登录</a>
		<a href="<?php echo url('worker', 'modify') ?>">修改勤助报名信息</a>
		<a href="<?php echo url('teacher', 'register') ?>">修改家教报名信息</a>
		<a href="<?php echo url('users', 'modify') ?>">修改个人信息</a>
		<?php } ?>
		<a href="<?php echo url() ?>">首页</a>
	</div>
	<div id="menu">
		<?php
			foreach($menus as $menu)
				echo '<a href="'.url($menu[0], $menu[1]).'">'.$menu[2].'</a>';
		?>
	</div>
</div>